package com.wxzz.elearning.gateway;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@EnableApolloConfig
@ComponentScan({"com.wxzz.elearning.gateway"})//,"com.wxzz.elearning.common.config"
public class GatewayApp {
    public static void main(String[] args) {
        System.setProperty("nepxion.banner.shown.ansi.mode", "false");
        args = new String[1];
        args[0] = "--spring.profiles.active=wxzz9020";
        new SpringApplicationBuilder(GatewayApp.class).run(args);
    }
}
